
<%@page import="com.company.entity.News"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html;charset=UTF-8"%>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>页面管理</title>
	<link rel="stylesheet" type="text/css"
		href="/back/index_data/xiugai_data/css.css">
		<link rel="stylesheet" type="text/css"
			href="/back/index_data/xiugai_data/manhuaDate.css">
			<script type="text/javascript"
				src="/back/index_data/xiugai_data/jquery.js"></script>
			<script type="text/javascript"
				src="/back/index_data/xiugai_data/manhuaDate.js"></script>
			<script type="text/javascript"
				src="/back/index_data/xiugai_data/jquery-1.js"></script>
			<!-- <script type="text/javascript" src="js/page.js" ></script> -->
			<script type="text/javascript">
				//下面用于图片上传预览功能
				function setImagePreview(avalue) {
					var docObj = document.getElementById("doc");

					var imgObjPreview = document.getElementById("preview");
					if (docObj.files && docObj.files[0]) {
						//火狐下，直接设img属性
						imgObjPreview.style.display = 'block';
						imgObjPreview.style.width = '300';
						imgObjPreview.style.height = '130';
						//imgObjPreview.src = docObj.files[0].getAsDataURL();

						//火狐7以上版本不能用上面的getAsDataURL()方式获取，需要一下方式
						imgObjPreview.src = window.URL
								.createObjectURL(docObj.files[0]);
					} else {
						//IE下，使用滤镜
						docObj.select();
						var imgSrc = document.selection.createRange().text;
						var localImagId = document.getElementById("img");
						//必须设置初始大小
						localImagId.style.width = "300";
						localImagId.style.height = "100";
						//图片异常的捕捉，防止用户修改后缀来伪造图片
						try {
							localImagId.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)";
							localImagId.filters
									.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgSrc;
						} catch (e) {
							alert("您上传的图片格式不正确，请重新选择!");
							return false;
						}
						imgObjPreview.style.display = 'none';
						document.selection.empty();
					}
					return true;
				}
			</script>
</head>

<body>
	<div id="pageAll">
		<div class="pageTop">
			<div class="page">
				<img src="/back/index_data/xiugai_data/coin02.png"><span><a
						href="#">首页</a>&nbsp;-&nbsp;<a href="#">行业新闻</a>&nbsp;-</span>&nbsp;行业新闻修改






				
			</div>
		</div>

		<div class="page">
			<!-- vip页面样式 -->
			<div class="vip">
				<div class="xiu" style="display:inline;">
					<form action="/news_save.action" method="post"
						enctype="multipart/form-data">
						<input type="hidden" name="nid"> 新闻标题：<input type="text"
							name="news.title" /> 新闻简介：<textarea type="text" name="news.content" ></textarea>
							图片：<input type="file" name="upload" value="上传" />
							<button type="submit">添加数据</button>
					</form>
				</div>
				<!-- vip 表格 显示 -->
				<div class="conShow">
					<table border="1" cellpadding="0" cellspacing="0">
						<tbody>
							<tr>
								<td class="tdColor" width="250px">图片</td>
								<td class="tdColor" width="66px">新闻标题</td>
								<td class="tdColor" width="300px">新闻简介</td>
								<td class="tdColor" width="130px">操作</td>
							</tr>
							<!-- 
							    <form name="form7" action="/news_change.action" method="post" enctype="multipart/form-data">
                            <tr>
                            <input type="hidden" name="nid" value="7" />
                            	<td>
                                    <div class="onsImg">
                                        <img src="/images/3_630_91845_600_600.jpg" id="preview" >
                                        <input type="file" name="upload" value="上传" id="doc" onchange="javascript:setImagePreview();" />
                                    </div>
                                    
                                </td>
                                <td>
                                    <textarea name="n_name" style="width:300px; height:300px;">环氧地坪涂料水性化正在成为趋势</textarea>
                                </td>
                                <td>
                                    <textarea name="n_enname" style="width:300px; height:300px;">The epoxy floor coatings water-borne is becoming a trend</textarea>
                                </td>
                                <td>
                                    <textarea name="n_intro" style="width:300px; height:300px;">【中国建材网】地坪涂料在现代建筑包括机场、道路建设中，得到广泛应用。这其中综合性能最为优异的环氧树脂地坪涂料显得最为突出，随着环保要求的增强，该产品又以水性化为发展特点，因此整个地坪涂料呈现水性环氧化的趋势。
　　
　　现代工业对地坪提出了越来越严格的要求，如食品、医药等工业要求地坪不起灰。无有害挥发物，干净无坐；机械工业要求耐强烈的机械冲击，耐磨损，能长期经受叉车等车辆的辗轧，即使局部损坏也容易维修；机床、仪器仪表等工业车间地面常受到各种油类侵蚀渗漏，难以彻底清除，要求地坪耐油性好；化学工业则要求地坪能耐各种化学介质的腐蚀。此外，现代文明的车间和家庭地坪应该平坦、亮丽、色彩丰富，给人们创造一个良好的工作和生活环境。这样随着涂料技术的飞速发展，地坪涂料的存在就有了其必要性和必然性。据专家介绍，由于材料性能的差异，以环氧树脂为基料的地坪涂料一直成为地坪涂料的主导。
　　
　　传统的溶剂型地坪涂料和无溶剂型地坪涂料基本性能优良。但其中存在着许多挥发性溶剂，对人体和环境存在不同程度的危害，另外由于传统的溶剂型涂料漆膜非常致密、透气性极差，当应用在地下潮气较重的基面时容易出现漆膜鼓泡、剥离脱落等现象，这样的例子屡见不鲜。而水性环氧树脂涂料同溶剂型环氧树脂涂料相比，漆膜具有微孔结构，它能允许水汽渗透而液体不能渗透，能释放水泥内部的气体压力，从根本上解决漆膜鼓泡的毛病。所以地坪涂料向环氧树脂水性化发展成为必然趋势。专家称，环氧地坪涂料对混凝土等多种底材的附着力优良、固化收缩率低；具有良好的耐水性、耐油性、耐酸碱性、耐盐雾腐蚀等化学特性；同时具有优良的耐磨性、耐冲压性、耐洗刷性等物理特征；在使用时不易产生裂纹且易冲洗、易维修保养。环氧地坪涂料在工业地坪行业占有重要地位。是现代工业较理想的长效地坪涂料品种。</textarea>
                                </td>
                                <td>
                                    <textarea name="n_enintro" style="width:300px; height:300px;">The floor coating is widely used in modern architecture, including airport and road construction. The comprehensive performance of the epoxy floor coating is the most outstanding, with the improvement of environmental requirements, the product is characterized by waterborne development, so the whole floor coating presents the trend of waterborne epoxy. The modern industry puts forward more and more stringent requirements, such as food, medicine and other industrial requirements of the plateau. No harmful volatiles, clean and there is no; Mechanical industry requires strong mechanical impact, wear resistance, can withstand the forklift truck for a long time, even if local damage is easy to repair; The ground of machine tool, instrument and instrument is often eroded by various kinds of oil, it is difficult to clean thoroughly, and require the terrace to be oil resistance; The chemical industry requires pingneng to resist the corrosion of various chemical media. In addition, the workshop and home floor of modern civilization should be flat, bright and colorful, and create a good work and living environment. With the rapid development of coating technology, the existence of floor coating has its necessity and inevitability. According to the experts, due to the difference of material properties, epoxy resin as the base material coating has been the dominant. The traditional solvent-based floor coating and non-solvent type floor coating have excellent properties. However, there are many volatile solvents, and the harm to human body and the environment, in addition, because the traditional solvent-based paint film is very dense, very poor permeability, when applied in the surface moisture, film bubble.Therefore, the development of floor coating to epoxy resin is an inevitable trend. Experts say that epoxy floor coating has excellent adhesion and low curing shrinkage of concrete. Have good water resistance, oil resistance, Acid and alkali, salt spray corrosion and other chemical properties; At the same time has excellent wear resistance, punching quality, washability and other physical characteristics; It is easy to crack and wash and maintain in use. Epoxy floor coating plays an important role in the industrial floor industry. Is the modern industry ideal long-term floor coating varieties.</textarea>
                                </td>
                                <td>
                                    <button class="btn" type="submit"  onclick="return confirm('确实要修改该条信息吗？')"><img class="operation" src="/back/index_data/xiugai_data/update.png"></button>
                                    <a onclick="return confirm('你确定要删除此条记录吗？')" href="/news_delete.action?nid=7">
                                    <img class="operation delban" src="/back/index_data/xiugai_data/delete.png"></button>
                                    </a>
                                 </td>
                            </tr>
                            </form>
							
							 -->

							<%
								List<News> list=(List<News>)session.getAttribute("list");
																	 	for(int i=0;i<list.size();++i)
																	 	{
																	 		News news=list.get(i);
																	 		out.println("<form name='form"+news.getId()+"'action='/news_update.action' method='post' enctype='multipart/form-data'><tr><input type='hidden' name='news.id' value='"+news.getId()+"' /><td><div class='onsImg'><img src='/images/"+news.getImages()+"' id='preview' > <input type='file' name='upload' value='上传' id='doc' onchange='javascript:setImagePreview();' /></div></td><td><textarea name='news.title' style='width:300px; height:300px;'>"+news.getTitle()+"</textarea>  </td>   <td>   <textarea name='news.content' style='width:300px; height:300px;'>"+news.getContent()+"</textarea>   </td>    <td>  <button class='btn' type='submit' onclick='return confirm(\"确认修改？\")'><img class='operation' src='/back/index_data/xiugai_data/update.png'></button>    <a onclick='return confirm(\"确认删除？\")' href='/news_delete.action?news.id="+news.getId()+"'>    <img class='operation delban' src='/back/index_data/xiugai_data/delete.png'></button></a></td></tr>   </form>");
																	 	}
							%>
						</tbody>
					</table>

				</div>
				<!-- vip 表格 显示 end-->
			</div>
			<!-- vip页面样式end -->
		</div>
	</div>
	<script type="text/javascript">
		// 广告弹出框
		$(".delban").click(function() {
			$(".banDel").show();
		});
		$(".close").click(function() {
			$(".banDel").hide();
		});
		$(".no").click(function() {
			$(".banDel").hide();
		});
		// 广告弹出框 end
	</script>
</body>
</html>